<template>
  <div v-loading="loading" element-loading-text="拼命加载中">
    <el-row>
      <!-- 搜索框 -->
      <el-col :span="24">
        <div class="search-wrapper">
          <div class="search-box">
            <el-form :inline="true" :model="formInline" class="demo-form-inline">
  <el-form-item label="河道等级：">
     <el-select v-model="formInline.region1" placeholder="区级">
      <el-option label="区域一" value="shanghai"></el-option>
      <el-option label="区域二" value="beijing"></el-option>
    </el-select>
  </el-form-item>
  <el-form-item label="河道分段名称：">
    <el-select v-model="formInline.region2" placeholder="长江">
      <el-option label="区域一" value="shanghai"></el-option>
      <el-option label="区域二" value="beijing"></el-option>
    </el-select>
  </el-form-item>
  <el-form-item label="河长姓名：">
    <el-select v-model="formInline.region3" placeholder="张三">
      <el-option label="区域一" value="shanghai"></el-option>
      <el-option label="区域二" value="beijing"></el-option>
    </el-select>
  </el-form-item>
  <el-form-item>
    <el-button round size="small" type="primary" @click="onSubmit">查询</el-button>
  </el-form-item>
</el-form>
          </div> 
        </div>
      </el-col>
      <!-- 按钮区 -->
      <el-col :span="24">
        <el-row>
          <el-col style="width:60px;padding-top:10px">图例：</el-col>
          <el-col :span="9">
            <el-form ref="form" :model="form" label-width="80px">
              <el-form-item label="河道部件">
    <el-checkbox-group v-model="form.type">
      <el-checkbox label="取水口" name="type"></el-checkbox>
      <el-checkbox label="排水口" name="type"></el-checkbox>
      <el-checkbox label="污染源" name="type"></el-checkbox>
    </el-checkbox-group>
  </el-form-item>
            </el-form>
          </el-col>
          <el-col :span="11">
            <el-form ref="form" :model="form" label-width="80px">
              <el-form-item label="河道设备">
    <el-checkbox-group v-model="form.type1">
      <el-checkbox label="水质监测仪" name="type"></el-checkbox>
      <el-checkbox label="雨量计" name="type"></el-checkbox>
      <el-checkbox label="水位仪" name="type"></el-checkbox>
      <el-checkbox label="摄像头" name="type"></el-checkbox>
    </el-checkbox-group>
  </el-form-item>
            </el-form>
          </el-col>
        </el-row>
      </el-col>
    </el-row>
    <!-- 表格 -->
    <el-row>
      <el-col :span="8">
        <div class="dimen-item">
          <img src="@/assets/imgs/1.jpg" alt="">
          <div>
            <p>河段名称：长江</p>
            <p>河道等级：区级</p>
            <p>河    长：张三</p>
          </div>
        </div>
      </el-col>
      <el-col :span="8">
        <div class="dimen-item">
          <img src="@/assets/imgs/1.jpg" alt="">
          <div>
            <p>河段名称：长江</p>
            <p>河道等级：区级</p>
            <p>河    长：张三</p>
          </div>
        </div>
      </el-col>
      <el-col :span="8">
        <div class="dimen-item">
          <img src="@/assets/imgs/1.jpg" alt="">
          <div>
            <p>河段名称：长江</p>
            <p>河道等级：区级</p>
            <p>河    长：张三</p>
          </div>
        </div>
      </el-col>
      <el-col :span="8">
        <div class="dimen-item">
          <img src="@/assets/imgs/1.jpg" alt="">
          <div>
            <p>河段名称：长江</p>
            <p>河道等级：区级</p>
            <p>河    长：张三</p>
          </div>
        </div>
      </el-col>
      <el-col :span="8">
        <div class="dimen-item">
          <img src="@/assets/imgs/1.jpg" alt="">
          <div>
            <p>河段名称：长江</p>
            <p>河道等级：区级</p>
            <p>河    长：张三</p>
          </div>
        </div>
      </el-col>
      <el-col :span="8">
        <div class="dimen-item">
          <img src="@/assets/imgs/1.jpg" alt="">
          <div>
            <p>河段名称：长江</p>
            <p>河道等级：区级</p>
            <p>河    长：张三</p>
          </div>
        </div>
      </el-col>
      <el-col :span="8">
        <div class="dimen-item">
          <img src="@/assets/imgs/1.jpg" alt="">
          <div>
            <p>河段名称：长江</p>
            <p>河道等级：区级</p>
            <p>河    长：张三</p>
          </div>
        </div>
      </el-col>
      <el-col :span="8">
        <div class="dimen-item">
          <img src="@/assets/imgs/1.jpg" alt="">
          <div>
            <p>河段名称：长江</p>
            <p>河道等级：区级</p>
            <p>河    长：张三</p>
          </div>
        </div>
      </el-col>
      <el-col :span="8">
        <div class="dimen-item">
          <img src="@/assets/imgs/1.jpg" alt="">
          <div>
            <p>河段名称：长江</p>
            <p>河道等级：区级</p>
            <p>河    长：张三</p>
          </div>
        </div>
      </el-col>
    </el-row>
    <!-- 底部按钮和分页 -->
    <el-row :gutter="20" type="flex" justify="space-between" align="center" class="page-wrapper">
     
      <el-col :span="20">
        <div class="page-item">
          <el-pagination background  @size-change="handleSizeChange" @current-change="handleCurrentChange"
                         :current-page="currentPage" :page-sizes="[10, 20, 30, 40]" :page-size="100" layout="total, sizes, prev, pager, next, jumper" :total="40"/>
        </div>
      </el-col>
    </el-row> 
  </div>
</template>
<script>
    export default {
        data() {
            return {
              loading:false,
              formInline: {
                region1: '',
                region2: '',
                region3: '',
              },
              form:{
                type:[],
                type1:[]
              },
              currentPage:1,
            }
        },
        methods:{  
            //搜索功能
            onSubmit() {
              console.log('submit!');
             },
            handleSizeChange(val) {
                console.log(`每页 ${val} 条`);
            },
            handleCurrentChange(val) {
                console.log(`当前页: ${val}`);
            },
           
        },
    }
</script>
<style scoped>
.dimen-item{text-align:center;}
.dimen-item>div{padding-top:10px;padding-bottom:15px;}
</style>
